package bookSystem.book;

/**
 *
 */
public class BookList {
    private Book[] books = new Book[10];
    private int usedSize;//存储当前书的个数
    public BookList(){
        books[0] = new Book("三国演义","罗贯中",50,"小说");
        this.usedSize = 1;
    }

    public Book getBook(int pos) {
        return books[pos];
    }

    public void setBooks(int pos,Book book) {
        books[pos] = book;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
}
